package service;

import dao.NewsDao;
import dao.NewsDaoImpl;
import entity.News;

import java.text.DateFormat;
import java.text.SimpleDateFormat;

public class NewsServiceImpl implements NewsService{
    private NewsDao dao = new NewsDaoImpl();
    private NewsDao doa;

    public void setDao(NewsDao dao) {
        this.dao = dao;
    }

    private DateFormat dao2= SimpleDateFormat.getInstance();
    @Override
    public void save(News news) {
        dao.save(news);
    }
}
